<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文章列表</title>
    <link rel="stylesheet" href="/assets/css/nprogress.css" />
    <link rel="stylesheet" href="/assets/css/article/article.css" />
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css" />
    <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/js/nprogress.js"></script>
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/js/common.js"></script>
    <script src="/assets/lib/template-web.js"></script>
    <script src="/assets/js/article/article.js"></script>
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">文章列表</div>
        <div class="layui-card-body">
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <div class="layui-input-inline" style="width: 100px;">

                            <select name="city" lay-verify="required">
                                  <option value=""></option>
                                  <option value="0">北京</option>
                                  <option value="1">上海</option>
                                  <option value="2">广州</option>
                                  <option value="3">深圳</option>
                                  <option value="4">杭州</option>
                                </select>
                        </div>
                        <div class="layui-input-inline" style="width: 100px;">

                            <select name="city" lay-verify="required">
                                  <option value=""></option>
                                  <option value="0">北京</option>
                                  <option value="1">上海</option>
                                  <option value="2">广州</option>
                                  <option value="3">深圳</option>
                                  <option value="4">杭州</option>
                                </select>
                        </div>
                        <div class="layui-inline">
                            <button class="layui-btn" lay-submit lay-filter="formDemo">
                筛选
              </button>
                        </div>
                    </div>
            </form>
            <table class="layui-table">
                <colgroup>
                    <col width="40%">
                    <col width="15%">
                    <col width="15%">
                    <col width="15%">
                    <col>
                </colgroup>
                <thead>
                    <tr>
                        <th>文章标题</th>
                        <th>分类</th>
                        <th>发表时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            </div>
        </div>
        <script id="tpl-article" type="text/html">
            {{each data}}
            <tr>
                <td>{{$value.title}}</td>
                <td>{{$value.cate_name}}</td>
                <td>{{$value.pub_date}}</td>
                <td>{{$value.state}}</td>
                <td>
                    <button type="button" class=" layui-btn layui-btn layui-btn-xs">
                        编辑
                      </button>
                    <button type="button" class=" layui-btn layui-btn-danger layui-btn layui-btn-xs">
                        删除
                      </button>
                </td>
            </tr>
            {{/each}}
        </script>
</body>

</html>